package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;

import java.util.List;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    //查询粉丝数
    Long getFanCountByUserId(Long userId);

    //查询用户喜欢数据
    List<UserLike> findUserLikes(Long userId, Integer type, Integer page, Integer pagesize);

    //删除喜欢数据
    Boolean deleteUserLike(Long userId, Long friendUserId);
}
